package com.serookie.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * @author kevintam
 * @version 1.0
 * @date 2021/6/4 22:01
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(value="地址对象", description="地址对象")
public class Address{
    @ApiModelProperty("主键id")
    @TableId(type = IdType.AUTO)
    private Integer id;
    @ApiModelProperty("名称")
    private String name;
    @ApiModelProperty("手机号码")
    private String phone;
    @ApiModelProperty("用户id")
    private String openid;
    @ApiModelProperty("地址")
    private String address;
    @ApiModelProperty("邮箱编码")
    private String postalCode;
    @TableField(fill = FieldFill.INSERT)
    @ApiModelProperty("商品的创建时间")
    private Date createTime;
    @TableField(fill = FieldFill.INSERT_UPDATE)
    @ApiModelProperty("商品的修改时间")
    private Date updateTime;

}
